package com.leo.apptest.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.leo.apptest.R;
import com.leo.apptest.fragment.CommunicateFragment;

public class FragmentCommunicateActivity extends AppCompatActivity implements CommunicateFragment.FragmentCallback {
    private static final String TAG = "FragmentCity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d(TAG, "onCreate:");
        setContentView(R.layout.activity_fragment_communicate);
        if (savedInstanceState == null) {
            CommunicateFragment fragment = new CommunicateFragment();
            getSupportFragmentManager().beginTransaction().replace(R.id.flContent, fragment).commit();
        }
    }

    @Override
    public void performClick() {
        System.out.println("perform click");
    }
}
